#ifndef BATCHCHECKOUTREQUESTMODEL_H
#define BATCHCHECKOUTREQUESTMODEL_H
#include "JsonSerializable.h"

namespace MesModel
{
class BatchCheckOutRequestPcuInfo;

class BatchCheckOutRequestModel: public JsonSerializable
{
public:
    BatchCheckOutRequestModel()=default;
    BatchCheckOutRequestModel(QString factoryNo,QString transId,QDateTime enventTime,QString eventUser,QString machineNo,QString batch,QList<BatchCheckOutRequestPcuInfo> pcuInfo);
    void fromJson(const QJsonObject &json)override;
    QJsonObject toJson() const override;

public:
    QString factoryNo;
    QString transId;
    QDateTime eventTime;
    QString eventUser;
    QString machineNo;
    QString batch;
    QList<BatchCheckOutRequestPcuInfo> pcuInfo;
};

class BatchCheckOutRequestPcuInfo: public JsonSerializable
{
public:
    BatchCheckOutRequestPcuInfo()=default;
    BatchCheckOutRequestPcuInfo(QString locationNo,QString pcu,QString gear,QList<QString> ngCodeList);
    void fromJson(const QJsonObject& json);
    QJsonObject toJson()const;

public:
    QString locationNo;
    QString pcu;
    QString gear;
    QList<QString> ngCodeList;


};

}
#endif // BATCHCHECKOUTREQUESTMODEL_H
